:host {
  display: block;
  &:not(.disabled) {
    margin-bottom: 4rem;
  }
  &.disabled {
    .preview {
      cursor: not-allowed;
      border: unset;
    }
  }
  &.ng-touched.ng-invalid {
    .preview {
      border-color: var(--danger);
    }
  }
}
.preview {
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
  &.preview-border {
    border: 2px dashed rgba(0, 0, 0, 0.1);
  }
  img {
    width: 100%;
    height: 100%;
  }
}
.subtitle {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
}
button {
  white-space: nowrap;
}
